﻿#include"GameLib/Framework.h"
#include"Image.h"
#include"State.h"

Image image("nimotsuKunImage.dds");

const char gStageData[] = "\
########\n\
#      #\n\
# .. p #\n\
# oo   #\n\
#      #\n\
########";

State state;

bool gStart = true;

namespace GameLib {
	void Framework::update() {
		if (gStart) {
			state.initialize(gStageData);
			state.draw(image, *this);
			gStart = false;
		}
		else {
			char input;
			cin >> input;
			state.update(input);
			state.draw(image, *this);
		}
	}
}